<div class="row">	<div class="span8 offset2">		<?php	if (validation_errors() != "") {		$error_output = "";		$error_output = "<div class='alert alert-error'>";		$error_output .= "<button class='close' data-dismiss='alert'>×</button>";		$error_output .= '<h4 class="alert-heading">Form Errors</h4>';		$error_output .= validation_errors('<p class="error">');		$error_output .= "</div>";		echo $error_output;	}		?>
		<?php
$attributes['class'] = "well form-horizontal";
echo form_open((isset($id)) ? "user/edit/" . $id : "user/create", $attributes);echo "<legend>";echo (isset($id)) ? 'Update User' : 'Create User'; echo "</legend>";
isset($id) ? form_hidden('username', 'johndoe') : '';echo "<div class='control-group'>";echo form_label('Display Name', 'display_name', array("class" => "control-label"));echo "<div class='controls'>";
echo form_input('display_name', set_value('display_name', $user -> getDisplayName() ? $user -> getDisplayName() : ''));echo "</div>";echo "</div>";
echo "<div class='control-group'>";echo form_label('First Name', 'first_name', array("class" => "control-label"));echo "<div class='controls'>";echo form_input('first_name', set_value('first_name', $user -> getFirstName() ? $user -> getFirstName() : ''));echo "</div>";echo "</div>";echo "<div class='control-group'>";echo form_label('Last Name', 'last_name', array("class" => "control-label"));echo "<div class='controls'>";
echo form_input('last_name', set_value('last_name', $user -> getLastName() ? $user -> getLastName() : ''));echo "</div>";echo "</div>";echo "<div class='control-group'>";echo form_label('Email', 'email', array("class" => "control-label"));echo "<div class='controls'>";
echo form_input('email', set_value('email', $user -> getEmail() ? $user -> getEmail() : ''));echo "</div>";echo "</div>";?>
		<legend>Login Info</legend>
		<?php
		echo "<div class='control-group'>";		echo form_label('Username', 'username', array("class" => "control-label"));		echo "<div class='controls'>";		echo form_input('username', set_value('username', $user -> getUsername() ? $user -> getUsername() : ''));		echo "</div>";		echo "</div>";		echo "<div class='control-group'>";		echo form_label('Password', 'password', array("class" => "control-label"));		echo "<div class='controls'>";		echo form_input('password', set_value('password'));		echo "</div>";		echo "</div>";		echo "<div class='control-group'>";		echo form_label('Cornfirm password', " ", array("class" => "control-label"));		echo "<div class='controls'>";
		echo form_input('password2');		echo "</div>";		echo "</div>";		?>
		<div class="form-actions">			<button type="submit" class="btn btn-primary">				<?php echo (isset($id)) ? 'Update User' : 'Create User'				?>			</button>			<button type="reset" class="btn">				Cancel			</button>		</div>
		<?php
		echo form_fieldset_close();		?>	</div></div>